
<div id="footer">
{if isset($error) }
    <div class='error'>{$error}</div>
{/if}
{if isset($info) }
    <div class='info'>{$info}</div>
{/if}
  <div id="footer_links">
{if isset($pages) }
	{if is_array($pages) }
		{foreach from=$pages item=page }
			{if isset($page.name) and isset($page.id) }
				<a href='{site_url("pages/id/`$page.id`")}'>{$page.name}</a>
			{/if}
		{/foreach}
	{/if}
{/if}

{if $logged_in}
      <a href="{site_url('users/logout')}" id="signin-link" rel="nofollow">logout</a>
{else}
      <a href="javascript: void(0);" id="signin-link" onclick="$('#signin-nav').toggle();$('#footer_links').toggle();" rel="nofollow">login</a>
{/if}
  </div>

  <div id="signin-nav" class="alr" style="display:none;">
      <form action="{site_url('/login')}" id="landing-signin-form" method="post">
          <div id="landing-signin-form-inputs">
              <input class="password-email" id="top-signin-email" type="text" name="login_email" value="Email" />
              <input class="password-password" id="top-signin-password" type="password" name="login_password" value="password" autocomplete="off" />
          </div>
          <div id="landing-signin-form-buttons">
              <input alt="Cancel" src="{site_url('/img/cancel.png')}" type="image" onclick="$('#signin-nav').toggle();$('#footer_links').toggle();">
              <input alt="Login" src="{site_url('/img/sign_in.png')}" type="image">
          </div>
      </form>  
  </div>
  <div id="footer_copyright">
    <strong>copyright &copy; 2010-2011 tsite - all rights reserved</strong><br />
  </div>
</div>
</div><!-- END: contentWrapper -->
</body>
<script src="{site_url('js/jquery-1.4.2.min.js')}" type="text/javascript"></script>
<script>
    $('#new_page_form').toggle();
    $('#new_text_form').toggle();
    $('#new_comment_form').toggle();
    $('#news_form').toggle();
    function show_form(f) {
        $('#' + f).toggle();
    }
</script>
</html>
